<?php

/**
 * map actions.
 *
 * @package    rbis
 * @subpackage parser
 * @author     Norú Moreno
 * @version    SVN: $Id: components.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class parserComponents extends sfComponents
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeUpload(){
  	echo javascript_tag("
	$(document).ready(function() {
	$('#fileInput').uploadify({
	'uploader'  : '/lib/uploadify/uploadify.swf',
	'script'    : '/lib/uploadify/uploadify.php',
	'checkScript':'/lib/uploadify/check.php',
	'cancelImg' : '/images/cancel.png',
	'auto'      : true,
	'folder'    : '/assets/uploads',
	'buttonText': '".__('Browse')."'
	});
});
	");
  }
}
